from flask import make_response, jsonify


def resp_json(code: int = 0, msg: str = "", data=None):
    resp = make_response(jsonify({"code": code, "msg": msg, "data": data}), 200)
    return resp
